﻿
using System;
using My.Extensions;
using My.Ioc.Exceptions;
using My.Ioc.Helpers;

namespace My.Ioc.Dependencies
{
    static class DependencyProviderException
    {
        internal static Exception DependencyUnregistered(Type targetType)
        {
            return new DependencyNotFoundException(
                ExceptionFormatter.Format(Resources.ObjectBuilderRegisteredWithTypeCanNotBeFound, targetType.ToTypeName()));
        }
    }
}
